package com.gitee.secretopen.sso.controller;

import cn.chenc.framework.core.model.response.ResponseVO;
import cn.chenc.framework.core.model.response.ResultUtil;
import com.gitee.secretopen.sso.service.DashBoardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 　@description: 看板控制层
 * 　@author secret
 * 　@date 2021/3/17 20:26
 *
 */
@RestController
@RequestMapping("/dashboard")
public class DashBoardController {

    @Autowired
    private DashBoardService boardService;

    @RequestMapping("/queryDashBoard")
    public ResponseVO queryDashBoard(){
        List<Integer> list=boardService.queryDashBoard();
        return ResultUtil.success(list);
    }
}
